import { fetchPayOrder, createPaidVipOrder } from '../services/vipService';
import { Toast } from 'antd-mobile';

function isLocal() {
  if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") {
    return true;
  }
  return false;
}

function isWechat() {
  return (/micromessenger/i).test(navigator.userAgent);
}

function delay(ms) {
  return new Promise((rs) => {
    setTimeout(rs, ms);
  });
}

export default {
  isLocal,
  isWechat,
  delay,
};
